//
//  ThirdLoginShareVerifyManager.h
//  YJAPPThird
//
//  Created by 张吉旭 on 16/12/20.
//  Copyright © 2016年 yj. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ShareUserInfoModel.h"


//第三方类型

typedef NS_ENUM(NSInteger,THIRDPLATFORM) {
    PlatformType_Sina               = 0, //新浪
    PlatformType_WechatSession      = 1, //微信聊天
    PlatformType_WechatTimeLine     = 2,//微信朋友圈
    PlatformType_WechatFavorite     = 3,//微信收藏
    PlatformType_QQ                 = 4,//QQ聊天页面
    PlatformType_Qzone              = 5,//qq空间
    
    
    PlatformType_UnKnown            = -2,
};


//平台用户信息回调
typedef void(^platformResult)(ShareUserInfoModel* result,NSError * error);


@interface ThirdLoginShareVerifyManager : NSObject

+(ThirdLoginShareVerifyManager*)shareInstance;

//umeng默认启动设置
-(void)setUMeng:(NSDictionary*)launchOptions;

//第三方系统回调(在Appdelege类- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url中需要调用)
-(BOOL)handleOpenURL:(NSURL*)url;


//返回对应平台的用户信息 (登录也可使用)
- (void)getUserInfoForPlatform:(THIRDPLATFORM)platformType currentViewController:(UIViewController*)currentViewController userInfoResult:(platformResult)userInfoResult;

//取消授权
- (void)cancelAuthWithPlatform:(THIRDPLATFORM)platformType;


//是否安装
-(BOOL) isInstall:(THIRDPLATFORM)platformType;


@end
